package com.hxzy.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hxzy.shop.dto.resp.AnnouncementClassificationListResp;
import com.hxzy.shop.entity.AnnouncementSendRecord;
import com.hxzy.shop.mapper.AnnouncementSendRecordMapper;
import com.hxzy.shop.service.AnnouncementSendRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@Service
public class AnnouncementSendRecordServiceImpl extends ServiceImpl<AnnouncementSendRecordMapper,AnnouncementSendRecord> implements AnnouncementSendRecordService {
    @Resource
    private AnnouncementSendRecordMapper announcementSendRecordMapper;

    @Override
    public List<AnnouncementClassificationListResp> getAnnouncementClassificationListRespList(String merchantId , Integer isLook) {
        return announcementSendRecordMapper.getAnnouncementClassificationListRespList(merchantId,isLook);
    }

    @Override
    public Integer getAnnouncementSendNum(String merchantId, Long announcementClassificationId,Integer isLook) {
        return announcementSendRecordMapper.getAnnouncementSendNum(merchantId,announcementClassificationId,isLook);
    }
}
